package com.umeox.watch.moto.launcher.ui;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.KeyEvent;

import com.umeox.moto.watch.themes.app.ThemeAppCompatActivity;
import com.umeox.watch.moto.launcher.R;


public class CompleteActivity extends ThemeAppCompatActivity {


	private Handler handler = new Handler(msg -> {
        startActivity(new Intent(CompleteActivity.this, MainActivity.class));
        CompleteActivity.this.finish();

        return false;
    });
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.complete_activity);

		handler.sendEmptyMessageDelayed(0,2000);
	}
	
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			return true;
		}
		return super.onKeyDown(keyCode, event);
	}

}
